home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Macintosh Demo Applications CD
/
Apple-MacintoshDemoApplicationsCD-1.0-1992.iso
/
More Information
/
QuickMail
/
Installer Resources
/
Scripts
/
Delphi.TYMNET.Teknic
< prev
next >
Wrap
Text File
|
1992-03-20
|
2KB
|
102 lines
* Delphi Script, for QuickMail™
* © 1989 Teknic Inc.
*
*
* NOTE: THIS SCRIPT ONLY WORKS IF YOU ARE CALLING IN THROUGH TYMNET.
*
* This is a simple script for logging onto Delphi directly
* Since Delphi does not support normal binary file transfer, this script
* doesn't either.
*
*
* This is called to log us into Delphi
:IN
OOPS 30,FAILURE
PAUSE 2
TYPE a
WAIT log in:
PAUSE 1
TYPE delphi^M
WAIT Username:
PAUSE 1
TYPE «LOGID»^M
WAIT Password:
TYPE «PASSWORD»^M
ISMAIL new Mail message
* this script assumes you have the option set to go
* to the MAC area on startup. Typing “GR MAC” would do the same.
WAIT MAC>
TYPE GO MAIL^M
* I think TYPE MAIL^M above would do the same...
WAIT DMAIL>
TYPE /len=0^M
WAIT DMAIL>
SUCCESS
*
* This logs us off Delphi
*
:BYE
TYPE BYE^M
ALERT 1,SUCCESS,log in:
ALERT 2,SUCCESS,NO CARRIER
PAUSE 10
SUCCESS
*
* This is called to send one piece of mail
*
:SEND
OOPS 60,FAILURE
TYPE MAIL^M
WAIT MAIL>
TYPE SEND^M
WAIT To:
TYPE «ADDRESS»^M
WAIT Subj:
TYPE «TOPIC»^M
WAIT C to quit:
TYPE Attn: «NAME»^M
DUMP ^J
TYPE ^Z
WAIT MAIL>
TYPE EXIT^M
WAIT DMAIL>
SUCCESS
*
* This is called to receive mail. It is called continually with increasing
* values in «COUNT», until FAILURE occurs. You can put all reads into one
* listing, if you wish
*
:RECEIVE
OOPS 60,FAILURE
ALERT 1,R10,No more messages
ALERT 2,R20,You aren't
ALERT 3,R20,Folder MAIL does not exist
TYPE MAIL^M
WAIT MAIL>
TYPE ^M
:R1
WAIT MAIL^M
* sneaky - the above line checks waits until the “FOLDER” name appears
* at the top of a mail message before starting the buffer. Even better,
* this would work for either the NEWMAIL or the MAIL folders.
BUFFER MAIL>
RECEIVE Subj:,Attn:,From:,To:,
* might want to do a FILE here, and purge the folder the next time the
* script is run, just in case something gets lost...
TYPE DELETE^M
:R10
WAIT MAIL>
TYPE EXIT^M
WAIT DMAIL>
ALERT 1,,
ALERT 2,,
ALERT 3,,
SUCCESS
:R20
TYPE EXIT^M
ALERT 1,,
ALERT 2,,
ALERT 3,,
FAILURE